﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;

namespace UI.Support
{
    public class ButtonClick : MonoBehaviour, IPointerClickHandler
    {
        public event Action Clicked;

        public void OnPointerClick(PointerEventData eventData) =>
            Clicked?.Invoke();
    }
}